package ru.gerunn.silent.app;

import org.apache.log4j.Logger;

import ru.gerunn.silent.client.Client;
import ru.gerunn.silent.exception.SilentClientException;
import ru.gerunn.silent.exception.SilentReaderException;
import ru.gerunn.silent.exception.SilentWriterException;

public class ClientApp {

	public static Logger log = Logger.getLogger(ClientApp.class);

	public static void main(String[] args) {
		System.setProperty("javax.net.ssl.trustStore", "keystore.jks");
		System.setProperty("javax.net.ssl.trustStorePassword", "Hjz3&5");

		try {
			Client client = new Client();
			client.start();
		} catch (SilentClientException e) {
			e.printStackTrace();
			System.exit(0);
		} catch (SilentReaderException e) {
			e.printStackTrace();
			System.exit(0);
		} catch (SilentWriterException e) {
			e.printStackTrace();
			System.exit(0);
		}
	}

}
